package net.lab1024.sa.admin.module.business.file.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.lab1024.sa.admin.module.business.file.domain.entity.DocmentPrintEntity;
import net.lab1024.sa.admin.module.business.file.domain.entity.DocmentaEntity;
import net.lab1024.sa.admin.module.business.file.domain.form.query.DocmentaQueryForm;
import net.lab1024.sa.admin.module.business.file.domain.vo.DocmentaVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 生产订单与机器对应表 Dao
 *
 * @Author AKITA
 * @Date 2025-07-04 16:56:25
 * @Copyright AKITA
 */

@Mapper
public interface DocmentaDao extends BaseMapper<DocmentaEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<DocmentaVO> queryPage(Page page, @Param("queryForm") DocmentaQueryForm queryForm);

    int selectMaxLineNum(@Param("docEntry") Long docEntry);
    void insertPrint(DocmentaQueryForm queryForm);

    List<DocmentPrintEntity> queryPagePrint(Page page, @Param("createBy") String createBy, @Param("fileName") String fileName , @Param("path") String path );
}
